package cn.meebook.domain;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BookDomainRepository extends JpaRepository<BookDomain, Long> {
	
	List<BookDomain> findByBook(Book book);
	List<BookDomain> findByDomain(Domain domain);
	List<BookDomain> findByDomainAndRecommendLevel(Domain bookDomain, int recommendLevel);

}
